From: Ray Strode Date: Thu, 29 Aug 2013 15:46:56 +0000 (-0400) Subject: loginDialog: show session menu button when in auth failed X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3582 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8b977252f3bcde603c88e900b2ede7f44eadd176;p=gnome-shell.git loginDialog: show session menu button when in auth failed Right now we only show the session menu button when verifying, but we should also show it when verification is failed or we can end up in situation where the session menu disappears during an authentication retry. https://bugzilla.gnome.org/show_bug.cgi?id=707064 --- diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index a4eba2a0f..3b4f2c54d 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -592,7 +592,8 @@ const LoginDialog = new Lang.Class({ }, _shouldShowSessionMenuButton: function() { - if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.VERIFYING) + if (this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.VERIFYING && + this._authPrompt.verificationStatus != AuthPrompt.AuthPromptStatus.VERIFICATION_FAILED) return false; if (this._user && this._user.is_loaded && this._user.is_logged_in())